
function Element() {
			
	this.obj  = null;

	this.init = function (select) {

		if(select.indexOf('#')!='-1'){
			var id = select.slice(1, select.length);
			this.obj = document.getElementById(id);
		}
	}
	this.width =  function(w) {
		if(typeof w !="number"){
			width = window.getComputedStyle ? window.getComputedStyle(this.obj,null).width : this.obj.currentStyle.widht;
			return width;
		}else{
			this.obj.style.width = w+"px";
		}
			
	}
}

function $(select) {
	
	var obj = new Element();

	obj.init(select);

	return obj;
}